const statusMap = {
	status: {
		"0": "离线",
		"1": "在线",
		"2": "故障",
	},
	type: {
		"0": "info",
		"1": "success",
		"2": "danger",
	},
};

const statusOptions = [{
		value: 'all',
		label: '全部',
	},
	{
		label: '在线',
		value: '1',
	},
	{
		label: '离线',
		value: '0',
	},
	{
		label: '故障',
		value: '2',
	}
];

// 表头列名
const columns = [{
		key: 0,
		label: `SN`,
		prop: "sn",
		visible: true
	},
	{
		key: 1,
		label: `名称`,
		prop: "name",
		visible: true
	},
	{
		key: 2,
		label: `地址`,
		prop: "address",
		visible: true
	},
	{
		key: 3,
		label: `状态`,
		prop: "status",
		visible: true
	},
	{
		key: 4,
		label: `离线/上线时间`,
		prop: "offOnlineTime",
		visible: true
	}
];

export {
	statusMap,
	statusOptions,
	columns
};